home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT Server List.xpl < prev    next >
Text File  |  2002-10-31  |  2KB  |  65 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="3"
  4. "UIPATH"="Network\Server\Computer Browser Service"
  5. "NAME"="Server List Options"
  6. "VERSION"="2.05"
  7. "OSVERSION"="0101011"
  8. "WARNING"="1"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Decide automatically if maintence is needed"
  11. "TEXT 2"="Do not maintence Server List"
  12. "TEXT 3"="Force maintence of Server List"
  13. "DESCRIPTION 1"="An NT Workstation or Server can take part in the computer browser service if it maintains a Server List. To control whether this list can be maintained, select the option you want."
  14. "DESCRIPTION 2"="If set to AUTOMATICALLY:"
  15. "DESCRIPTION 3"="This computer will only start the computer browser service if the current master browser asks him to do so."
  16. "DESCRIPTION 4"="If set to DO NOT"
  17. "DESCRIPTION 5"="This computer will NEVER offer the computer browser service for other computers."
  18. "DESCRIPTION 6"="If set to FORCE"
  19. "DESCRIPTION 7"="This computer will offer the computer browser service for other computers, regardless what the current browser master is doing."
  20. "AUTHOR"="Ojatex@aol.com"
  21. "CONTACTURL"="http://members.aol.com/ojatex/"
  22. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  23. "COMMENT 1"="see also http://support.microsoft.com/default.aspx?scid=kb;en-us;Q136712 "
  24.  
  25. sP="HKLM\System\CurrentControlSet\Services\Browser\Parameters\MaintainServerList"
  26.  
  27. Sub Plugin_Initialize 
  28.      i=RegReadValue(sP)
  29.      If i="Auto" or IsEmpty(i) then
  30.         SetUIElement 1,true
  31.      end if
  32.      If i="No" then
  33.         SetUIElement 2,true
  34.      end if
  35.      If i="Yes" then
  36.         SetUIElement 3,true
  37.      end if
  38.  
  39. End Sub
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  45.  s=""
  46.  
  47.  if GetUIElement(1)=true then
  48.     s="Auto"
  49.  end if
  50.  
  51.  if GetUIElement(2)=true then
  52.     s="No"
  53.  end if
  54.  
  55.  if GetUIElement(3)=true then
  56.     s="Yes"
  57.  end if
  58.  
  59.  Call RegWriteValue(sP,s,1)
  60.  Call Restart
  61. End Sub
  62.  
  63. Sub Plugin_Terminate 
  64. End Sub
  65.